package solitaire.presentation;

import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Graphics;

import javax.swing.JPanel;

import solitaire.controle.CSabot;
import solitaire.presentation.PSolitaire;

public class PSabot extends JPanel {

	PTasDeCartes cachees;
	PTasDeCartes visible;
	CSabot controler;
	
	public PSabot(PTasDeCartes cachees, PTasDeCartes visibles, CSabot controler) {
		this.cachees = cachees;
		this.visible = visibles;
		this.controler = controler;
		
		setLayout(new FlowLayout(FlowLayout.LEFT, 10, 10));
		
		add(visibles, 0);
		add(cachees, 0);
		
		cachees.setHorizontal();
		visibles.setHorizontal();
		
		//setBorder(null);
		setVisible(true);
		
		validate();
	}

//	public void paint(Graphics g) {
//		super.paint(g);
//		g.setColor(Color.yellow);
//		g.drawRect(0, 0, getWidth() - 1, getHeight() - 1);
//	}

	public void activerRetournerCarte() {
		
	}
	
	public void desactiverRetournerCarte() {

	}

//	public void retournerCarte() {
//
//	}

	public void activerRetournerTas() {

	}

	public void desactiverRetournerTas() {

	}
}
